//
//  workSet.h
//  dataGathering
//
//  Created by apple on 14/11/17.
//  Copyright (c) 2014年 shuili. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "collectedData.h"


@interface workSet : NSObject

@property(nonatomic, retain)NSString *name;
@property(nonatomic, retain)NSString *creator;
@property(nonatomic, retain)NSString *imageURL;
@property(nonatomic, retain)NSString *createTime;
@property(nonatomic, retain)NSString *updateTime;
@property(nonatomic, retain)NSString *locationString;
@property(nonatomic, retain)NSString *worksetDescription;
@property(nonatomic, retain)NSString *worksetID;
@property(nonatomic, assign)NSInteger x;
@property(nonatomic, assign)NSInteger y;
@property(nonatomic, retain)NSMutableArray *collectedDataList;
@property(nonatomic, assign)BOOL isAutoSync;
@property(nonatomic, assign)BOOL isCompleted;
@property(nonatomic, assign)BOOL isTracking;
@property(nonatomic, assign)BOOL isOnlineLayerDisplayed;
@property(nonatomic, assign)BOOL isDeleted;


-(void)setLocationValues: (double)x :(double)y :(NSString*)locationString;
-(instancetype)initWithNameAndDesc :(NSString*)name :(NSString*)desc;
-(instancetype)initWithNameAndDescAndUser :(NSString*)name :(NSString*)desc :(NSString*)user;
-(void)updateDescWithNewWorkset :(workSet*)newWorkSet;
-(BOOL)checkNewCollectedDataName :(NSString *)newDataName;
-(void)addNewCollectedData :(collectedData*)newData;


@end
